package com.dragon.mmochat.model.role;

import java.util.ArrayList;
import java.util.List;

import com.dragon.mmochat.model.enumType.MmochatTaskType;
import com.dragon.mmochat.model.task.MmochatNpcBattle;

//由配置文件构造MmochatTempNpc的中间结构
public class MmochatBossFactory extends MmochatNpc {
	private static final long serialVersionUID = -6888822337198583493L;
	private int level = 1; // 等级
	private long lifeTime; // 生命时间, ms
	private List<Integer> appearHour = new ArrayList<Integer>(); // 可能出现的小时
	private List<Integer> appearMap = new ArrayList<Integer>();// 可能出现的地图
	MmochatNpcBattle battle = null; // 战斗
	MmochatTaskType battleType = null;
	private int minTeamNum = 1;

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public long getLifeTime() {
		return lifeTime;
	}

	public void setLifeTime(long lifeTime) {
		this.lifeTime = lifeTime;
	}

	public List<Integer> getAppearHour() {
		return appearHour;
	}

	public void setAppearHour(List<Integer> appearHour) {
		this.appearHour = appearHour;
	}

	public void addAppearHour(int hour) {
		if (!appearHour.contains(hour)) {
			appearHour.add(hour);
		}
	}

	public List<Integer> getAppearMap() {
		return appearMap;
	}

	public void setAppearMap(List<Integer> appearMap) {
		this.appearMap = appearMap;
	}

	public void addAppearMap(int map) {
		if (!appearMap.contains(map)) {
			appearMap.add(map);
		}
	}

	public MmochatNpcBattle getBattle() {
		return battle;
	}

	public void setBattle(MmochatNpcBattle battle) {
		this.battle = battle;
	}

	public MmochatTaskType getBattleType() {
		return battleType;
	}

	public void setBattleType(MmochatTaskType battleType) {
		this.battleType = battleType;
	}

	public int getMinTeamNum() {
		return minTeamNum;
	}

	public void setMinTeamNum(int minTeamNum) {
		this.minTeamNum = minTeamNum;
	}

}
